package com.realife.eson.common.config;

import lombok.extern.slf4j.Slf4j;
import org.gitlab4j.api.GitLabApi;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @version V1.0
 * @author: guangcheng
 * @date: 2022/6/3 16:29
 * @description:
 */
@Slf4j
@Configuration
public class GitLabConfig {

    @Autowired
    GitlabApiProperties properties;


    @Bean
    public GitLabApi gitLabApi() {
        return new GitLabApi(properties.getHost(), properties.getPrivateToken());
    }


}

